export interface UploadConfig {
  uploadMode: 'custom' | 'default'

  server: string

  attachmentServer: string

  fieldName: string

  maxNumberOfFiles: number

  maxFileSize: number

  meta: Record<string, unknown>

  metaWithUrl: boolean

  headers: Record<string, unknown>

  withCredentials: boolean

  timeout: number

  onBeforeUpload: any
  customUpload: any
  requestUpload: any
  getAttachmentUrl: any
}

export interface UploadOnceConfig extends UploadConfig {
  name: string
  allowedFileTypes: Array<string>
  base64LimitSize?: number
}
